#include "BufferNameGL3x.h"

using namespace Renderer;
using namespace Renderer::GL3x;


void Renderer::GL3x::BufferNameGL3x::Destroy()
{
	if (_value != 0)
	{
		glDeleteBuffers(1, &_value);
	}
}

GLuint Renderer::GL3x::BufferNameGL3x::GetValue()
{
	return _value;
}

Renderer::GL3x::BufferNameGL3x::~BufferNameGL3x()
{
	Destroy();
}

Renderer::GL3x::BufferNameGL3x::BufferNameGL3x()
{
	glGenBuffers(1, &_value);
}
